<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
        <meta name="description" content="Test on HTML and CSS">
        <meta name="author" content="Huoty">
        <meta http-equiv="refresh" content="30">
        <title>Web 设计</title>
        <link rel="shortcut icon" href="http://konghy.cn/favicon.ico" type="image/x-icon" />
    </head>
    <body>
JavaScript 字符串分割
    </body>
</html> 
<script type="text/javascript">
var baseurl = "/user/huoty/";
var user = baseurl.match(/\/user\/(.+)\//);
console.info(user);

if (user == null || user[1] == undefined || user[1] == '') {
    console.info("user is null");
}

user = user[1];

console.info(user);


</script>
